/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.server.modules.sys.entity.qr_memeber;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.server.common.persistence.DataEntity;

/**
 * 二维码客户Entity
 * @author 金
 * @version 2017-07-07
 */
public class QrMember extends DataEntity<QrMember> {
	
	private static final long serialVersionUID = 1L;
	protected String qrTicker;		// qr_ticker
	protected String toUsername;		// to_username
	protected String openId;		// open_id
	protected Date createTime;		// create_time
	
	public QrMember() {
		super();
	}

	public QrMember(String id){
		super(id);
	}

	@Length(min=0, max=255, message="qr_ticker长度必须介于 0 和 255 之间")
	public String getQrTicker() {
		return qrTicker;
	}

	public void setQrTicker(String qrTicker) {
		this.qrTicker = qrTicker;
	}
	
	@Length(min=0, max=64, message="to_username长度必须介于 0 和 64 之间")
	public String getToUsername() {
		return toUsername;
	}

	public void setToUsername(String toUsername) {
		this.toUsername = toUsername;
	}
	
	@Length(min=0, max=255, message="open_id长度必须介于 0 和 255 之间")
	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
}